// Copyright (c) 2020 cgsdfc
// 
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT

## Python-ast.h is not protected by extern "C".
#ifdef __cplusplus
extern "C" {
#endif
#include <Python-ast.h>
#ifdef __cplusplus
}
#endif

<%!
from astlib.cc_types import FinalAstNode
%>

% for v in hierarchy.class_list:
    % if isinstance(v, FinalAstNode):
#ifndef ${v.asdl_name}
#error "${v.asdl_name} should be defined."
#endif
#undef ${v.asdl_name}

    % endif
%endfor
